import { Entity, PrimaryGeneratedColumn, Column, BaseEntity, ManyToOne, OneToMany, JoinColumn, ManyToMany, JoinTable } from 'typeorm';

@Entity('setting_accord')
export class SettingAccord extends BaseEntity {
  @PrimaryGeneratedColumn({ comment: '协议id' })
  accord_id: number;

  @Column({ length: 63, default: '', comment: '标识' })
  unique: string;

  @Column({ length: 255, default: '', comment: '名称' })
  name: string;

  @Column({ length: 255, default: '', comment: '描述' })
  desc: string;

  @Column({ type: 'text', nullable: true, comment: '内容' })
  content: string;

  @Column({ length: 255, default: '', comment: '备注' })
  remark: string;

  @Column({ default: 250, comment: '排序' })
  sort: number;

  @Column({ type: 'tinyint', default: 0, comment: '是否禁用，1是0否' })
  is_disable: number;

  @Column({ type: 'tinyint', default: 0, comment: '是否删除，1是0否' })
  is_delete: number;

  @Column({ default: 0, comment: '添加用户id' })
  create_uid: number;

  @Column({ default: 0, comment: '修改用户id' })
  update_uid: number;

  @Column({ default: 0, comment: '删除用户id' })
  delete_uid: number;

  @Column({ type: 'datetime', nullable: true, comment: '添加时间' })
  create_time: Date;

  @Column({ type: 'datetime', nullable: true, comment: '修改时间' })
  update_time: Date;

  @Column({ type: 'datetime', nullable: true, comment: '删除时间' })
  delete_time: Date;
}